package com.his.bean;

import java.io.Serializable;

/**
 * 微信公众平台信息
 * @TableName dzm_his_wxmp
 */
public class DzmHisWxmp implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 所属用户
     */
    private Integer userid;

    /**
     * 公众平台appid
     */
    private String appid;

    /**
     * 公众平台appsecret
     */
    private String appsecret;

    /**
     * 微信后台填写的TOKEN,自动回复
     */
    private String token;

    /**
     * 微信后台填写的EncodingAESKey，自动回复
     */
    private String encodingaeskey;

    /**
     * 
     */
    private String accessToken;

    /**
     * 过期时间，php时间戳
     */
    private Integer accessTokenExpires;

    /**
     * jsapi_ticket
     */
    private String jsapiTicket;

    /**
     * jsapi_ticket过期时间
     */
    private Integer jsapiTicketExpires;

    /**
     * 微信支付企业帐号
     */
    private String mchid;

    /**
     * 微信支付key
     */
    private String mchkey;

    /**
     * 微信企业付款证书部分路径
     */
    private String sslCertPath;

    /**
     * 支付宝app_id
     */
    private String appId;

    /**
     * 支付宝商户私钥，您的原始格式RSA私钥
     */
    private String merchantPrivateKey;

    /**
     * 支付宝公钥
     */
    private String alipayPublicKey;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 所属用户
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 所属用户
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 公众平台appid
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 公众平台appid
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 公众平台appsecret
     */
    public String getAppsecret() {
        return appsecret;
    }

    /**
     * 公众平台appsecret
     */
    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    /**
     * 微信后台填写的TOKEN,自动回复
     */
    public String getToken() {
        return token;
    }

    /**
     * 微信后台填写的TOKEN,自动回复
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 微信后台填写的EncodingAESKey，自动回复
     */
    public String getEncodingaeskey() {
        return encodingaeskey;
    }

    /**
     * 微信后台填写的EncodingAESKey，自动回复
     */
    public void setEncodingaeskey(String encodingaeskey) {
        this.encodingaeskey = encodingaeskey;
    }

    /**
     * 
     */
    public String getAccessToken() {
        return accessToken;
    }

    /**
     * 
     */
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    /**
     * 过期时间，php时间戳
     */
    public Integer getAccessTokenExpires() {
        return accessTokenExpires;
    }

    /**
     * 过期时间，php时间戳
     */
    public void setAccessTokenExpires(Integer accessTokenExpires) {
        this.accessTokenExpires = accessTokenExpires;
    }

    /**
     * jsapi_ticket
     */
    public String getJsapiTicket() {
        return jsapiTicket;
    }

    /**
     * jsapi_ticket
     */
    public void setJsapiTicket(String jsapiTicket) {
        this.jsapiTicket = jsapiTicket;
    }

    /**
     * jsapi_ticket过期时间
     */
    public Integer getJsapiTicketExpires() {
        return jsapiTicketExpires;
    }

    /**
     * jsapi_ticket过期时间
     */
    public void setJsapiTicketExpires(Integer jsapiTicketExpires) {
        this.jsapiTicketExpires = jsapiTicketExpires;
    }

    /**
     * 微信支付企业帐号
     */
    public String getMchid() {
        return mchid;
    }

    /**
     * 微信支付企业帐号
     */
    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    /**
     * 微信支付key
     */
    public String getMchkey() {
        return mchkey;
    }

    /**
     * 微信支付key
     */
    public void setMchkey(String mchkey) {
        this.mchkey = mchkey;
    }

    /**
     * 微信企业付款证书部分路径
     */
    public String getSslCertPath() {
        return sslCertPath;
    }

    /**
     * 微信企业付款证书部分路径
     */
    public void setSslCertPath(String sslCertPath) {
        this.sslCertPath = sslCertPath;
    }

    /**
     * 支付宝app_id
     */
    public String getAppId() {
        return appId;
    }

    /**
     * 支付宝app_id
     */
    public void setAppId(String appId) {
        this.appId = appId;
    }

    /**
     * 支付宝商户私钥，您的原始格式RSA私钥
     */
    public String getMerchantPrivateKey() {
        return merchantPrivateKey;
    }

    /**
     * 支付宝商户私钥，您的原始格式RSA私钥
     */
    public void setMerchantPrivateKey(String merchantPrivateKey) {
        this.merchantPrivateKey = merchantPrivateKey;
    }

    /**
     * 支付宝公钥
     */
    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    /**
     * 支付宝公钥
     */
    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisWxmp other = (DzmHisWxmp) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getAppsecret() == null ? other.getAppsecret() == null : this.getAppsecret().equals(other.getAppsecret()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))
            && (this.getEncodingaeskey() == null ? other.getEncodingaeskey() == null : this.getEncodingaeskey().equals(other.getEncodingaeskey()))
            && (this.getAccessToken() == null ? other.getAccessToken() == null : this.getAccessToken().equals(other.getAccessToken()))
            && (this.getAccessTokenExpires() == null ? other.getAccessTokenExpires() == null : this.getAccessTokenExpires().equals(other.getAccessTokenExpires()))
            && (this.getJsapiTicket() == null ? other.getJsapiTicket() == null : this.getJsapiTicket().equals(other.getJsapiTicket()))
            && (this.getJsapiTicketExpires() == null ? other.getJsapiTicketExpires() == null : this.getJsapiTicketExpires().equals(other.getJsapiTicketExpires()))
            && (this.getMchid() == null ? other.getMchid() == null : this.getMchid().equals(other.getMchid()))
            && (this.getMchkey() == null ? other.getMchkey() == null : this.getMchkey().equals(other.getMchkey()))
            && (this.getSslCertPath() == null ? other.getSslCertPath() == null : this.getSslCertPath().equals(other.getSslCertPath()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getMerchantPrivateKey() == null ? other.getMerchantPrivateKey() == null : this.getMerchantPrivateKey().equals(other.getMerchantPrivateKey()))
            && (this.getAlipayPublicKey() == null ? other.getAlipayPublicKey() == null : this.getAlipayPublicKey().equals(other.getAlipayPublicKey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getAppsecret() == null) ? 0 : getAppsecret().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        result = prime * result + ((getEncodingaeskey() == null) ? 0 : getEncodingaeskey().hashCode());
        result = prime * result + ((getAccessToken() == null) ? 0 : getAccessToken().hashCode());
        result = prime * result + ((getAccessTokenExpires() == null) ? 0 : getAccessTokenExpires().hashCode());
        result = prime * result + ((getJsapiTicket() == null) ? 0 : getJsapiTicket().hashCode());
        result = prime * result + ((getJsapiTicketExpires() == null) ? 0 : getJsapiTicketExpires().hashCode());
        result = prime * result + ((getMchid() == null) ? 0 : getMchid().hashCode());
        result = prime * result + ((getMchkey() == null) ? 0 : getMchkey().hashCode());
        result = prime * result + ((getSslCertPath() == null) ? 0 : getSslCertPath().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getMerchantPrivateKey() == null) ? 0 : getMerchantPrivateKey().hashCode());
        result = prime * result + ((getAlipayPublicKey() == null) ? 0 : getAlipayPublicKey().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", appid=").append(appid);
        sb.append(", appsecret=").append(appsecret);
        sb.append(", token=").append(token);
        sb.append(", encodingaeskey=").append(encodingaeskey);
        sb.append(", accessToken=").append(accessToken);
        sb.append(", accessTokenExpires=").append(accessTokenExpires);
        sb.append(", jsapiTicket=").append(jsapiTicket);
        sb.append(", jsapiTicketExpires=").append(jsapiTicketExpires);
        sb.append(", mchid=").append(mchid);
        sb.append(", mchkey=").append(mchkey);
        sb.append(", sslCertPath=").append(sslCertPath);
        sb.append(", appId=").append(appId);
        sb.append(", merchantPrivateKey=").append(merchantPrivateKey);
        sb.append(", alipayPublicKey=").append(alipayPublicKey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}